gtk4.git
6 years agoRelease to experimental
Simon McVittie [Thu, 18 Jul 2019 08:22:51 +0000 (09:22 +0100)]
Release to experimental

6 years agoImprove .pc file to avoid over-linking (and Lintian false-positives)
Simon McVittie [Thu, 18 Jul 2019 08:22:02 +0000 (09:22 +0100)]
Improve .pc file to avoid over-linking (and Lintian false-positives)

6 years agoRemove obsolete conffile im-multipress.conf during upgrade
Simon McVittie [Thu, 18 Jul 2019 08:04:52 +0000 (09:04 +0100)]
Remove obsolete conffile im-multipress.conf during upgrade

6 years agoSet Rules-Requires-Root to no
Simon McVittie [Wed, 17 Jul 2019 20:26:38 +0000 (21:26 +0100)]
Set Rules-Requires-Root to no

6 years agoStandards-Version: 4.4.0 (no changes required)
Simon McVittie [Wed, 17 Jul 2019 20:26:00 +0000 (21:26 +0100)]
Standards-Version: 4.4.0 (no changes required)

6 years agoInstall documentation in /usr/share/gtk-doc, with symlinks in /u/s/doc
Simon McVittie [Wed, 17 Jul 2019 17:59:29 +0000 (18:59 +0100)]
Install documentation in /usr/share/gtk-doc, with symlinks in /u/s/doc

gtk-doc documentation is technically a functional interface, because
other packages can build-depend on it and use it to fix cross-references.

6 years agoOnly install AUTHORS in -doc package
Simon McVittie [Wed, 17 Jul 2019 17:45:18 +0000 (18:45 +0100)]
Only install AUTHORS in -doc package

6 years agoUpdate installed file lists again
Simon McVittie [Wed, 17 Jul 2019 17:23:28 +0000 (18:23 +0100)]
Update installed file lists again

Gbp-Dch: ignore

6 years agod/rules: Fail the build if anything from the deb build is not installed
Simon McVittie [Wed, 17 Jul 2019 17:05:38 +0000 (18:05 +0100)]
d/rules: Fail the build if anything from the deb build is not installed

6 years agod/not-installed: Remove
Simon McVittie [Wed, 17 Jul 2019 17:04:43 +0000 (18:04 +0100)]
d/not-installed: Remove

6 years agoRemove infrastructure for dealing with reftests that are known to fail
Simon McVittie [Wed, 17 Jul 2019 17:04:02 +0000 (18:04 +0100)]
Remove infrastructure for dealing with reftests that are known to fail

6 years agoUse debhelper-compat 12
Simon McVittie [Wed, 17 Jul 2019 17:03:01 +0000 (18:03 +0100)]
Use debhelper-compat 12

6 years agoDon't override libexecdir
Simon McVittie [Wed, 17 Jul 2019 17:01:49 +0000 (18:01 +0100)]
Don't override libexecdir

In debhelper compat level 12 this is the default.

Gbp-Dch: ignore

6 years agoUpdate changelog
Simon McVittie [Wed, 17 Jul 2019 16:58:37 +0000 (17:58 +0100)]
Update changelog

6 years agoAdd Build-Depends-Package to symbols file
Simon McVittie [Wed, 17 Jul 2019 16:47:35 +0000 (17:47 +0100)]
Add Build-Depends-Package to symbols file

6 years agod/copyright: Update name of a settings schema
Simon McVittie [Wed, 17 Jul 2019 16:46:18 +0000 (17:46 +0100)]
d/copyright: Update name of a settings schema

6 years agod/libgtk-4-0.symbols.in: Update
Simon McVittie [Wed, 17 Jul 2019 16:26:56 +0000 (17:26 +0100)]
d/libgtk-4-0.symbols.in: Update

6 years agoUpdate lists of installed files
Simon McVittie [Wed, 17 Jul 2019 10:25:14 +0000 (11:25 +0100)]
Update lists of installed files

6 years agoFix dangling references to removed box-packing tests
Simon McVittie [Wed, 17 Jul 2019 10:02:33 +0000 (11:02 +0100)]
Fix dangling references to removed box-packing tests

6 years agoUpdate dependencies
Simon McVittie [Tue, 16 Jul 2019 10:54:34 +0000 (11:54 +0100)]
Update dependencies

6 years agoOptimistically assume failing reftests have been fixed
Simon McVittie [Tue, 16 Jul 2019 11:00:13 +0000 (12:00 +0100)]
Optimistically assume failing reftests have been fixed

6 years agoRefresh patch series and drop applied patches
Simon McVittie [Tue, 16 Jul 2019 10:58:06 +0000 (11:58 +0100)]
Refresh patch series and drop applied patches

6 years agod/rules: Update SONAME
Simon McVittie [Tue, 16 Jul 2019 10:28:34 +0000 (11:28 +0100)]
d/rules: Update SONAME

6 years agod/tests/build: Adjust for rename of pkg-config module to gtk4
Simon McVittie [Tue, 16 Jul 2019 09:50:19 +0000 (10:50 +0100)]
d/tests/build: Adjust for rename of pkg-config module to gtk4

6 years agod/copyright: Update
Simon McVittie [Tue, 16 Jul 2019 09:50:05 +0000 (10:50 +0100)]
d/copyright: Update

6 years agoNew upstream release
Simon McVittie [Tue, 16 Jul 2019 09:33:48 +0000 (10:33 +0100)]
New upstream release

6 years agoUpdate upstream source from tag 'upstream/3.96.0'
Simon McVittie [Tue, 16 Jul 2019 09:33:48 +0000 (10:33 +0100)]
Update upstream source from tag 'upstream/3.96.0'

Update to upstream version '3.96.0'
with Debian dir 5b98b358a03027907c1e3a6f000cc6d31a346f18

6 years agoNew upstream version 3.96.0
Simon McVittie [Tue, 16 Jul 2019 09:33:17 +0000 (10:33 +0100)]
New upstream version 3.96.0

6 years agoChange library name (and download location) from GTK+ to GTK, following upstream...
Simon McVittie [Tue, 16 Jul 2019 09:32:30 +0000 (10:32 +0100)]
Change library name (and download location) from GTK+ to GTK, following upstream re-branding

6 years agoUpdate changelog
Simon McVittie [Tue, 16 Jul 2019 09:27:32 +0000 (10:27 +0100)]
Update changelog

6 years ago3.96
Matthias Clasen [Tue, 7 May 2019 03:01:40 +0000 (03:01 +0000)]
3.96

6 years agoMark a failing reftest as xfail
Matthias Clasen [Tue, 7 May 2019 03:26:22 +0000 (03:26 +0000)]
Mark a failing reftest as xfail

I don't know why we expect different window types
to render identically in the first place.

6 years agoUpdate a11y tests
Matthias Clasen [Mon, 6 May 2019 23:33:13 +0000 (23:33 +0000)]
Update a11y tests

6 years agoa11y: Stop using child-notify
Matthias Clasen [Tue, 7 May 2019 02:20:29 +0000 (02:20 +0000)]
a11y: Stop using child-notify

This was showing up in the accessibility tests failing.

6 years agowidget: Revert the event translation change
Matthias Clasen [Mon, 6 May 2019 22:20:51 +0000 (22:20 +0000)]
widget: Revert the event translation change

This is a temporary revert to make menus work
in the 3.96 release, until we land the popup
surface work and port menus to it.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1755
6 years agoMerge branch 'wip/headers' into 'master'
Benjamin Otte [Mon, 6 May 2019 18:24:49 +0000 (18:24 +0000)]
Merge branch 'wip/headers' into 'master'

Wip/headers

See merge request GNOME/gtk!824

6 years agobroadway: Install headers
Benjamin Otte [Mon, 6 May 2019 18:09:52 +0000 (20:09 +0200)]
broadway: Install headers

How are we going to check a display for its broadway-ness otherwise?

6 years agobuild: Install the backend headers in the backend directories
Benjamin Otte [Mon, 6 May 2019 18:09:03 +0000 (20:09 +0200)]
build: Install the backend headers in the backend directories

That's where they are in the sources and we include them from other
headers. So make sure the directories match.

6 years agoUpdate POTFILES.skip
Piotr Drąg [Mon, 6 May 2019 16:55:40 +0000 (18:55 +0200)]
Update POTFILES.skip

6 years agogl renderer: Fix coloring shader
Timm Bäder [Mon, 6 May 2019 15:58:55 +0000 (17:58 +0200)]
gl renderer: Fix coloring shader

We *just* pre-multiplied u_color but then didn't use its rgb values.
This fixes backdrop scale marks in Adwaita to not be white.

6 years agogl renderer: Fix blend shader
Timm Bäder [Mon, 6 May 2019 15:33:48 +0000 (17:33 +0200)]
gl renderer: Fix blend shader

6 years agotestsuite: Add blend-difference test case
Timm Bäder [Mon, 6 May 2019 15:33:29 +0000 (17:33 +0200)]
testsuite: Add blend-difference test case

Comparing blend nodes with mode: difference

6 years agotestsuite: Add a blend node test case
Timm Bäder [Mon, 6 May 2019 15:26:46 +0000 (17:26 +0200)]
testsuite: Add a blend node test case

This is currently broken in the GL renderer.

6 years agoSome node editor improvements
Timm Bäder [Sat, 4 May 2019 07:22:01 +0000 (09:22 +0200)]
Some node editor improvements

6 years agoMerge branch 'header-bar-leak4' into 'master'
Matthias Clasen [Mon, 6 May 2019 14:17:17 +0000 (14:17 +0000)]
Merge branch 'header-bar-leak4' into 'master'

GtkHeaderBar: Don't leak decoration layout

See merge request GNOME/gtk!822

6 years agoMerge branch 'issue-1863' into 'master'
Emmanuele Bassi [Mon, 6 May 2019 12:01:47 +0000 (12:01 +0000)]
Merge branch 'issue-1863' into 'master'

Allow setting the GtkLayoutManager type per-class

Closes #1863

See merge request GNOME/gtk!821

6 years agoMake get_layout_manager_type() public
Emmanuele Bassi [Mon, 6 May 2019 11:15:21 +0000 (12:15 +0100)]
Make get_layout_manager_type() public

The inspector, and other tools introspecting the widget structure like
gtk-builder-tool and Glade, may very well want to access the default
layout manager used by a class, especially if there are layout
properties involved, without having a whitelist of widget/layout manager
associations.

6 years agoUse gtk_widget_class_set_layout_manager_type()
Emmanuele Bassi [Mon, 6 May 2019 11:06:27 +0000 (12:06 +0100)]
Use gtk_widget_class_set_layout_manager_type()

Instead of manually creating the layout manager inside the instance
initialization function, we can let GtkWidget do that for us.

6 years agoGtkHeaderBar: Don't leak decoration layout
Guido Günther [Mon, 6 May 2019 10:55:16 +0000 (12:55 +0200)]
GtkHeaderBar: Don't leak decoration layout

Currently we leak priv->decoration_layout if the layout is set
multiple times.

6 years agoAllow specifying the layout manager for a widget type
Emmanuele Bassi [Mon, 6 May 2019 10:57:32 +0000 (11:57 +0100)]
Allow specifying the layout manager for a widget type

Some widgets have a well-defined layout manager created alongside their
own instance; if they do, we can handle the layout manager creation at
the GtkWidget instantiation.

6 years agocsstokenizer: Consume the \ when encountering an error
Benjamin Otte [Mon, 6 May 2019 03:56:06 +0000 (05:56 +0200)]
csstokenizer: Consume the \ when encountering an error

Otherwise we infinitely end up with the error again.

Testcases added.

6 years agoMerge branch 'simplify-tests' into 'master'
Matthias Clasen [Sun, 5 May 2019 20:19:13 +0000 (20:19 +0000)]
Merge branch 'simplify-tests' into 'master'

Simplify tests

See merge request GNOME/gtk!820

6 years agoAdd some tests
Matthias Clasen [Sun, 5 May 2019 15:29:24 +0000 (15:29 +0000)]
Add some tests

These test various aspects of ui file conversion.

6 years agobuilder-tool: Handle layout properties more properly
Matthias Clasen [Sun, 5 May 2019 17:09:17 +0000 (17:09 +0000)]
builder-tool: Handle layout properties more properly

Change things so we first rewrite the whole tree,
and then simplify the rewritten tree. And look
for paramspecs for layout properties.

6 years agobuilder-tool: Stop warnings for stack rewrites
Matthias Clasen [Sun, 5 May 2019 15:49:28 +0000 (15:49 +0000)]
builder-tool: Stop warnings for stack rewrites

When rewriting a GtkStack from 3 to 4, we were emitting
warnings for missing child properties. Stop doing that.

6 years agotestsuite: Add tests for ui file rewriting
Matthias Clasen [Sun, 5 May 2019 15:23:59 +0000 (15:23 +0000)]
testsuite: Add tests for ui file rewriting

Add a test script that runs
gtk4-builder-tool simplify --3to4.
No actual tests yet.

6 years agoFix the simplify test
Matthias Clasen [Sun, 5 May 2019 15:21:58 +0000 (15:21 +0000)]
Fix the simplify test

The script was returning the wrong number of tests.

6 years agoMerge branch 'focus-fixes' into 'master'
Matthias Clasen [Sun, 5 May 2019 14:20:04 +0000 (14:20 +0000)]
Merge branch 'focus-fixes' into 'master'

Focus fixes

See merge request GNOME/gtk!819

6 years agoUpdate POTFILES.skip
Piotr Drąg [Sun, 5 May 2019 14:11:04 +0000 (16:11 +0200)]
Update POTFILES.skip

6 years agoMerge branch 'builder-tool-fixes' into 'master'
Matthias Clasen [Sun, 5 May 2019 06:57:21 +0000 (06:57 +0000)]
Merge branch 'builder-tool-fixes' into 'master'

Builder tool fixes

See merge request GNOME/gtk!817

6 years agoMerge branch 'emoji-chooser-fixes' into 'master'
Matthias Clasen [Sun, 5 May 2019 06:41:31 +0000 (06:41 +0000)]
Merge branch 'emoji-chooser-fixes' into 'master'

Emoji chooser fixes

See merge request GNOME/gtk!816

6 years agobuilder-tool: Handle default values changing
Matthias Clasen [Sat, 4 May 2019 15:59:08 +0000 (15:59 +0000)]
builder-tool: Handle default values changing

The default value of GtkWidget::visible changed
from FALSE to TRUE from GTK 3 to 4. Make --3to4
deal with this by ensuring the visible property
is explicitly set, before simplifying.

6 years agoMerge branch 'wip/otte/nodeeditor2' into 'master'
Benjamin Otte [Sun, 5 May 2019 05:40:54 +0000 (05:40 +0000)]
Merge branch 'wip/otte/nodeeditor2' into 'master'

Use a text based format for render node files

See merge request GNOME/gtk!815

6 years agogl renderer: Reset opacity when offscreen-rendering crossfade nodes
Timm Bäder [Sat, 4 May 2019 08:13:30 +0000 (10:13 +0200)]
gl renderer: Reset opacity when offscreen-rendering crossfade nodes

A pattern emerges...

6 years agotestsuite: Add serialize test for debug node
Benjamin Otte [Thu, 2 May 2019 18:09:31 +0000 (20:09 +0200)]
testsuite: Add serialize test for debug node

6 years agonode-editor: Add renderings with alternative renderers
Benjamin Otte [Sat, 9 Mar 2019 13:55:17 +0000 (14:55 +0100)]
node-editor: Add renderings with alternative renderers

That's pretty rough around the edges, but it mostly works.
Apart from sizing, screw listbox sizing.

6 years agogsk: Export gsk_vulkan_renderer_new()
Benjamin Otte [Thu, 2 May 2019 00:57:23 +0000 (02:57 +0200)]
gsk: Export gsk_vulkan_renderer_new()

6 years agogsk: Export gsk_broadway_renderer_new()
Benjamin Otte [Thu, 2 May 2019 00:46:23 +0000 (02:46 +0200)]
gsk: Export gsk_broadway_renderer_new()

... when broadway is enabled.

6 years agogsk: Export gsk_gl_renderer_new()
Benjamin Otte [Thu, 2 May 2019 00:13:16 +0000 (02:13 +0200)]
gsk: Export gsk_gl_renderer_new()

6 years agogsk: Export Cairo renderer
Benjamin Otte [Wed, 1 May 2019 21:58:57 +0000 (23:58 +0200)]
gsk: Export Cairo renderer

6 years agotestsuite: Add rounded-rect parsing test
Benjamin Otte [Wed, 1 May 2019 13:29:38 +0000 (15:29 +0200)]
testsuite: Add rounded-rect parsing test

6 years agoAdd gtk4-node-editor
Benjamin Otte [Tue, 12 Mar 2019 14:05:25 +0000 (15:05 +0100)]
Add gtk4-node-editor

It's meant to be a little editor for render nodes so we can do testing
with it.

6 years agorendernode: Parse and print blend nodes properly
Benjamin Otte [Sat, 27 Apr 2019 07:03:51 +0000 (09:03 +0200)]
rendernode: Parse and print blend nodes properly

6 years agotestsuite: Add nodeparser test case
Timm Bäder [Wed, 24 Apr 2019 06:00:04 +0000 (08:00 +0200)]
testsuite: Add nodeparser test case

A serialized frame from the widget factory!

6 years agoci: Don't disable the gsk suite
Timm Bäder [Wed, 24 Apr 2019 16:57:11 +0000 (18:57 +0200)]
ci: Don't disable the gsk suite

6 years agoAdd error func to node deserialization
Timm Bäder [Wed, 24 Apr 2019 16:30:46 +0000 (18:30 +0200)]
Add error func to node deserialization

6 years agotestsuite: Black out parts of reftest
Benjamin Otte [Sat, 27 Apr 2019 05:20:20 +0000 (07:20 +0200)]
testsuite: Black out parts of reftest

6 years agotestsuite: Remove old cairo/vulkan tests
Timm Bäder [Wed, 24 Apr 2019 11:50:04 +0000 (13:50 +0200)]
testsuite: Remove old cairo/vulkan tests

They are still in the old binary format and haven't worked for a while.

6 years agorendernode: Remove old GVariant (de)serialization code
Timm Bäder [Wed, 24 Apr 2019 11:47:30 +0000 (13:47 +0200)]
rendernode: Remove old GVariant (de)serialization code

We're doing the CSS thing now.

6 years agotestsuite: Add another gl renderer test
Timm Bäder [Wed, 24 Apr 2019 11:25:32 +0000 (13:25 +0200)]
testsuite: Add another gl renderer test

6 years agotestsuite: Remove gl_tests infrastructure
Benjamin Otte [Sat, 27 Apr 2019 04:42:28 +0000 (06:42 +0200)]
testsuite: Remove gl_tests infrastructure

They're now completely migrated to the new compare infrastructure, that
also tests Vulkan and Cairo.

6 years agotestsuite: Add cross-fade-in-opacity test
Timm Bäder [Wed, 24 Apr 2019 10:48:59 +0000 (12:48 +0200)]
testsuite: Add cross-fade-in-opacity test

Making sure that an opacity node doesn't end up reviving a node that's
hidden because the cross-fade has progress 0 or 1.

6 years agotestsuite: Remove broken GL comparison tests
Timm Bäder [Wed, 24 Apr 2019 10:48:13 +0000 (12:48 +0200)]
testsuite: Remove broken GL comparison tests

These only work on special hardware, which not even I have anymore.
We'll need to redo them in a way that works on different systems.

6 years agotestsuite: Print serialized nodes when parsing fails
Timm Bäder [Wed, 24 Apr 2019 09:26:34 +0000 (11:26 +0200)]
testsuite: Print serialized nodes when parsing fails

6 years agotestsuite: add shadow node parser test
Timm Bäder [Wed, 24 Apr 2019 09:26:17 +0000 (11:26 +0200)]
testsuite: add shadow node parser test

6 years agotestsuite: add another nodeparser crash test
Timm Bäder [Wed, 24 Apr 2019 08:49:36 +0000 (10:49 +0200)]
testsuite: add another nodeparser crash test

6 years agotestsuite: Add serialize-deserialize tests
Timm Bäder [Tue, 23 Apr 2019 16:08:06 +0000 (18:08 +0200)]
testsuite: Add serialize-deserialize tests

Check that we can successfully deserialize a node, then serialize it
again and deserialize that result once more.

6 years agotestsuite: Add a broken test
Benjamin Otte [Thu, 21 Mar 2019 05:47:36 +0000 (06:47 +0100)]
testsuite: Add a broken test

This also adds some build magic so all tests that contain "-3d" in them
won't be added to the Cairo renderer.

Of course, this new test is such a test.

6 years agoMove working tests to new directory
Benjamin Otte [Tue, 19 Mar 2019 07:16:07 +0000 (08:16 +0100)]
Move working tests to new directory

These are tests that are working on both GL and Cairo now.

Some tests got black boxes over the areas that aren't easy to compare.

6 years agotestsuite: Port gl tests to text-based format
Timm Bäder [Sat, 2 Mar 2019 10:15:02 +0000 (11:15 +0100)]
testsuite: Port gl tests to text-based format

6 years agotestsuite: Delete some node tests
Benjamin Otte [Sat, 27 Apr 2019 01:27:30 +0000 (03:27 +0200)]
testsuite: Delete some node tests

These are the tests that aren't going to be made to work, so let's just
delete them.

6 years agotestsuite: Add tests for the new node parsing code
Benjamin Otte [Tue, 19 Mar 2019 04:29:20 +0000 (05:29 +0100)]
testsuite: Add tests for the new node parsing code

This adds a test tool gsk/node-parser that takes node files and parses
them.

A few of these node files have been added, for crashes I encountered while
developing the new parsing code.

6 years agoParse render nodes from text files
Timm Bäder [Sat, 2 Mar 2019 15:55:17 +0000 (16:55 +0100)]
Parse render nodes from text files

Instead of the previous approach using GVariant, this new approach uses
human-readable text files as the serialization format for render nodes.

The format is a custom one, but it is inspired by QML and conforms to
the CSS syntax. Because of that, we can use the CSS machinery from GTK
to parse it, and in particular share code to parse properties that GTK's
CSS machinery also supports, such as colors.

This commit breaks all existing usages of node files - such as the
testsuite and various test tools - they will be fixed in further
commits.

6 years agocssparser: Add gtk_css_parser_has_number()
Benjamin Otte [Wed, 1 May 2019 13:27:52 +0000 (15:27 +0200)]
cssparser: Add gtk_css_parser_has_number()

6 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 4 May 2019 19:34:25 +0000 (19:34 +0000)]
Update Basque translation

6 years agoentry: Drop our own Emoji chooser
Matthias Clasen [Sat, 4 May 2019 18:51:27 +0000 (18:51 +0000)]
entry: Drop our own Emoji chooser

We were using one Emoji chooser when triggered
via the context menu, and another one when
triggered via the icon.

Change things to always use the same Emoji
chooser instance.

6 years agowindow: Stop duplicating focus change events
Matthias Clasen [Sat, 4 May 2019 15:18:35 +0000 (15:18 +0000)]
window: Stop duplicating focus change events

We had code in gtkwindow.c that generated duplicate,
and defective, focus-change events, in the following
way:
- gtkmain.c generates a chain of focus-change events
  for moving focus from one window to another
- gtkwindow.c catches a focus-in event in the middle
  of this chain and sets itself as 'active'
- and then it proceeds to generate focus-change
  events towards its own focus widget without a
  related target
This is not necessary since we gtkmain.c already
generates a complete sequence of focus-change events.
So stop doing it.

6 years agowindow: Make _gtk_window_set_is_active static
Matthias Clasen [Sat, 4 May 2019 15:06:40 +0000 (15:06 +0000)]
window: Make _gtk_window_set_is_active static

It is not used outside gtkwindow.c.

6 years agobuilder-tool: Handle GtkWidget::visible properly
Matthias Clasen [Sat, 4 May 2019 15:58:11 +0000 (15:58 +0000)]
builder-tool: Handle GtkWidget::visible properly

This property has a 'smart' default that depends
on the class of the object we're creating. Take
that into account when deciding whether to omit
properties that are set to their default value.

6 years agoemoji chooser: Make Escape work again
Matthias Clasen [Sat, 4 May 2019 16:55:52 +0000 (16:55 +0000)]
emoji chooser: Make Escape work again

Escape is expected to close the Emoji chooser.